<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  
  <title>iSCSI | Matrix207&#39;s Blog</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="description" content="What is ISCSIiSCSI是由IEETF开发的网络存储标准，目的是为了用IP协议将存储设备连接在一起。
Why need iSCSI
解决了SCSI协议在设备数目和连接距离上的限制;
为SAN提供了一种高性价比的传输协议；
与各种存储管理结合起来，提供灵活的备份、镜像、灾难恢复以及次级存储解决方案；

iSCSI 的存储连接方式
iSCSI HBA卡连接方式（硬iSCSI）：在主机上安装">
<meta property="og:type" content="article">
<meta property="og:title" content="iSCSI">
<meta property="og:url" content="http://yoursite.com/2014/06/24/iscsi/index.html">
<meta property="og:site_name" content="Matrix207's Blog">
<meta property="og:description" content="What is ISCSIiSCSI是由IEETF开发的网络存储标准，目的是为了用IP协议将存储设备连接在一起。
Why need iSCSI
解决了SCSI协议在设备数目和连接距离上的限制;
为SAN提供了一种高性价比的传输协议；
与各种存储管理结合起来，提供灵活的备份、镜像、灾难恢复以及次级存储解决方案；

iSCSI 的存储连接方式
iSCSI HBA卡连接方式（硬iSCSI）：在主机上安装">
<meta property="og:image" content="http://yoursite.com/assets/image/posts/iscsi/iscsi_010.png">
<meta property="og:image" content="http://yoursite.com/assets/image/posts/iscsi/iscsi_011.png">
<meta property="og:image" content="http://yoursite.com/assets/image/posts/iscsi/iscsi_026.png">
<meta property="og:image" content="http://yoursite.com/assets/image/posts/iscsi/iscsi_027.png">
<meta property="og:image" content="http://yoursite.com/assets/image/posts/iscsi/iscsi_028.png">
<meta property="og:image" content="http://yoursite.com/assets/image/posts/iscsi/iscsi_029.png">
<meta property="og:image" content="http://yoursite.com/assets/image/posts/iscsi/iscsi_030.png">
<meta property="og:image" content="http://yoursite.com/assets/image/posts/iscsi/iscsi_031.png">
<meta property="og:image" content="http://yoursite.com/assets/image/posts/iscsi/iscsi_032.png">
<meta property="og:image" content="http://yoursite.com/assets/image/posts/iscsi/iscsi_033.png">
<meta property="og:image" content="http://yoursite.com/assets/image/posts/iscsi/iscsi_034.png">
<meta property="og:image" content="http://yoursite.com/assets/image/posts/iscsi/iscsi_035.png">
<meta property="og:image" content="http://yoursite.com/assets/image/posts/iscsi/iscsi_036.png">
<meta property="og:image" content="http://yoursite.com/assets/image/posts/iscsi/iscsi_037.png">
<meta property="og:image" content="http://yoursite.com/assets/image/posts/iscsi/iscsi_038.png">
<meta property="og:image" content="http://yoursite.com/assets/image/posts/iscsi/iscsi_039.png">
<meta property="og:image" content="http://yoursite.com/assets/image/posts/iscsi/iscsi_040.png">
<meta property="og:image" content="http://yoursite.com/assets/image/posts/iscsi/iscsi_041.png">
<meta property="og:image" content="http://yoursite.com/assets/image/posts/iscsi/iscsi_042.png">
<meta property="og:image" content="http://yoursite.com/assets/image/posts/iscsi/iscsi_043.png">
<meta property="og:image" content="http://yoursite.com/assets/image/posts/iscsi/iscsi_044.png">
<meta property="og:image" content="http://yoursite.com/assets/image/posts/iscsi/iscsi_045.png">
<meta property="og:updated_time" content="2016-07-17T14:33:54.000Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="iSCSI">
<meta name="twitter:description" content="What is ISCSIiSCSI是由IEETF开发的网络存储标准，目的是为了用IP协议将存储设备连接在一起。
Why need iSCSI
解决了SCSI协议在设备数目和连接距离上的限制;
为SAN提供了一种高性价比的传输协议；
与各种存储管理结合起来，提供灵活的备份、镜像、灾难恢复以及次级存储解决方案；

iSCSI 的存储连接方式
iSCSI HBA卡连接方式（硬iSCSI）：在主机上安装">
<meta name="twitter:image" content="http://yoursite.com/assets/image/posts/iscsi/iscsi_010.png">
  
    <link rel="alternate" href="/atom.xml" title="Matrix207&#39;s Blog" type="application/atom+xml">
  
  
    <link rel="icon" href="/favicon.png">
  
  
    <link href="//fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet" type="text/css">
  
  <link rel="stylesheet" href="/css/style.css">
  

</head>

<body>
  <div id="container">
    <div id="wrap">
      <header id="header">
  <div id="banner"></div>
  <div id="header-outer" class="outer">
    <div id="header-title" class="inner">
      <h1 id="logo-wrap">
        <a href="/" id="logo">Matrix207&#39;s Blog</a>
      </h1>
      
    </div>
    <div id="header-inner" class="inner">
      <nav id="main-nav">
        <a id="main-nav-toggle" class="nav-icon"></a>
        
          <a class="main-nav-link" href="/">Home</a>
        
          <a class="main-nav-link" href="/archives">Archives</a>
        
      </nav>
      <nav id="sub-nav">
        
          <a id="nav-rss-link" class="nav-icon" href="/atom.xml" title="Flux RSS"></a>
        
        <a id="nav-search-btn" class="nav-icon" title="Rechercher"></a>
      </nav>
      <div id="search-form-wrap">
        <form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" results="0" class="search-form-input" placeholder="Search"><button type="submit" class="search-form-submit">&#xF002;</button><input type="hidden" name="sitesearch" value="http://yoursite.com"></form>
      </div>
    </div>
  </div>
</header>
      <div class="outer">
        <section id="main"><article id="post-iscsi" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="/2014/06/24/iscsi/" class="article-date">
  <time datetime="2014-06-23T16:00:00.000Z" itemprop="datePublished">2014-06-24</time>
</a>
    
  <div class="article-category">
    <a class="article-category-link" href="/categories/storage/">storage</a>
  </div>

  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 class="article-title" itemprop="name">
      iSCSI
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <h3 id="What-is-ISCSI"><a href="#What-is-ISCSI" class="headerlink" title="What is ISCSI"></a>What is ISCSI</h3><p>iSCSI是由IEETF开发的网络存储标准，目的是为了用IP协议将存储设备连接在一起。</p>
<h3 id="Why-need-iSCSI"><a href="#Why-need-iSCSI" class="headerlink" title="Why need iSCSI"></a>Why need iSCSI</h3><ol>
<li>解决了SCSI协议在设备数目和连接距离上的限制;</li>
<li>为SAN提供了一种高性价比的传输协议；</li>
<li>与各种存储管理结合起来，提供灵活的备份、镜像、灾难恢复以及次级存储解决方案；</li>
</ol>
<h3 id="iSCSI-的存储连接方式"><a href="#iSCSI-的存储连接方式" class="headerlink" title="iSCSI 的存储连接方式"></a>iSCSI 的存储连接方式</h3><ol>
<li><p>iSCSI HBA卡连接方式（硬iSCSI）：<br>在主机上安装专业的iSCSI HBA适配卡，从而实现主机与交换机之间、主机与存储之间的<br>高效数据交换。传输性能好，价格高。</p>
</li>
<li><p>以太网卡+initiator软件方式（软iSCSI）：<br>服务器、工作站等主机使用标准的以太网卡，通过以太网线直接与以太网交换机连接，<br>iSCSI存储也通过以太网线连接到以太网交换机上，或直接连接到主机的以太网卡上。<br>在主机上安装Initiator软件，Initiator软件可以将以太网卡虚拟为iSCSI卡，接受和发<br>送iSCSI数据报文，从而实现主机和iSCSI设备之间的iSCSI协议和TCP/IP协议传输功能。</p>
</li>
</ol>
<h3 id="Compile-and-install"><a href="#Compile-and-install" class="headerlink" title="Compile and install"></a>Compile and install</h3><p>The iSCSI target consists of a kernel module (iscsi_trgt.ko) , daemon<br>(ietd) and control utility (ietadm).</p>
<ul>
<li>Compile</li>
</ul>
<ol>
<li>build all: <code>make</code></li>
<li>build component: <code>make kernel</code> or <code>make usr</code></li>
</ol>
<ul>
<li>install</li>
</ul>
<ol>
<li>Install all: <code>make [KSRC=&lt;kernel-src&gt;] install</code></li>
<li><p>Install individual components:</p>
<p> make [KSRC=<kernel-src>] install-kernel - for kernel module<br> make [KSRC=<kernel-srv>] install-usr - for daemon and utility<br> make [KSRC=<kernel-srv>] install-init - for init.d script<br> make [KSRC=<kernel-srv>] install-etc - for config files</kernel-srv></kernel-srv></kernel-srv></kernel-src></p>
</li>
</ol>
<p>ietd and ietadm will be install in /usr/sbin<br>iscsi-target was install in /etc/init.d/<br>ietd.conf and initiators.{allow,denny} were install in /etc</p>
<ul>
<li><p>start stop</p>
<p>  /etc/init.d/iscsi-target start<br>  /etc/init.d/iscsi-target stop</p>
</li>
</ul>
<h3 id="iet基本配置和命令"><a href="#iet基本配置和命令" class="headerlink" title="iet基本配置和命令"></a>iet基本配置和命令</h3><p><strong>iet主要配置</strong></p>
<p>主要包括以下配置文件</p>
<pre><code>/etc/ietd.conf ：iet的主配置文件
/etc/initiators.allow：控制initiator对target的访问权限
/etc/initiators.deny：控制initiator对target的访问权限
/etc/targets.allow：控制不同target的被访问权限
</code></pre><p>通过/etc/ietd.conf, iet实现iSCSI Target的基本功能.</p>
<p>iSCSI Target的命名，命名在同一子网内应该是唯一。</p>
<pre><code>Target  target名称
其中：
target 名称：是iSCSI Target名称。一般iSCSI Target命名采用
    “iqn.yyyy-mm.&lt;reversed domain name&gt;: identifier 识别代号”的格式。
</code></pre><p>将块设备、文件、LVM卷、RAID卷作为块设备映射给iSCSI initiator使用。 </p>
<pre><code>Lun  &lt;lunID&gt; Path=&lt;device&gt;,Type=fileio|blockio[,IOMode=(wb|ro)]
其中：
&lt;lunID&gt;：是Lun的编号从0开始，最大2^14-1。
Path=&lt;device&gt;：指定块设备。可以使用dd命令生成一个文件。
Type=fileio|blockio：指定块设备类型，分区及dd命令生成的文件使用fileio类型；
    LVM卷、RAID卷使用blockio类型。
IOMode=(wb|ro)：指定iSCSI initiator允许的操作，wb表示可读写；ro表示只读。
</code></pre><p>配置完后重起iscsi-target，initiator即可连接使用.</p>
<p><strong>iet其它配置</strong></p>
<p>通过命令方式配置的iSCSI Target在重启后会失效。</p>
<pre><code>添加一个新的Target。其中[id]为数字却必须唯一，Name需自定义，也要唯一。
ietadm --op new --tid=[id] --params Name=iqn.zqin.example

添加一个新的lun。其中[id]必须是一个已存在的tid号，[lun]从0开始。
ietadm --op new --tid=[id] --lun=[lun] --params Path=/path/exported/file,Type=fileio
</code></pre><p><strong>iet常用命令</strong></p>
<pre><code>查看当前iSCSI Target清单。 
cat /proc/net/iet/volume

查看当前服务器iSCSI Target服务以及连接状态命令
cat /proc/net/iet/sessions

停止某个Target 的某个 Connection 的连接。
ietadm --op delete --tid=2 --sid=562950876233792 --cid=1  &amp;&amp; ietadm --op delete --tid=2

停止所有Target 的连接。
ietadm --op delete

删除某个Target （已经没有 Session 连接的）。
ietadm --op delete --tid= 1
</code></pre><p><strong>完整操作如下</strong>:</p>
<pre><code>[root@ ~]# dd if=/dev/zero of=/root/iscsi.disk bs=1M count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 9.30143 s, 115 MB/s
[root@ ~]# echo &quot;Target iqn.2014-06.com.matrix:storage.515.disk&quot; &gt;&gt; /etc/ietd.conf
[root@ ~]# echo &quot;Lun 0 Path=/root/iscsi.disk,Type=fileio&quot;&gt;&gt;/etc/ietd.conf
[root@ ~]# echo &quot;Alias lun0&quot;&gt;&gt;/etc/ietd.conf
[root@ ~]# cat /etc/ietd.conf 
Target iqn.2014-06.com.matrix:storage.515.disk
Lun 0 Path=/root/iscsi.disk,Type=fileio
Alias lun0
[root@ ~]# echo &quot;iqn.2014-06.com.matrix:storage.515.disk 172.16.*.*&quot;&gt;&gt; /etc/initiators.allow
[root@ ~]# cat /etc/initiators.allow 
iqn.2014-06.com.matrix:storage.515.disk 172.16.*.*
[root@ ~]# netstat -tulpn | grep 3260 
tcp     0      0 172.16.110.10:3260   0.0.0.0:*  LISTEN  12147/ietd 
[root@ ~]# cat /proc/net/iet/session 
tid:1 name:iqn.2014-06.com.matrix:storage.515.disk
[root@ ~]# cat /proc/net/iet/volume 
tid:1 name:iqn.2014-06.com.matrix:storage.515.disk
    lun:0 state:0 iotype:fileio iomode:wt blocks:2097152 blocksize:512 path:/root/iscsi.disk

[root@ ~]# /etc/init.d/iscsi-target restart
Stopping iSCSI Target:                                     [  OK  ]
Starting iSCSI Target: FATAL: Error inserting crc32c_intel (/lib/modules/2.6
.32-279.el6.x86_64/kernel/arch/x86/crypto/crc32c-intel.ko): No such device
                                                           [  OK  ]
</code></pre><p>上面的错误是因为centos 6.3, kernel 2.6.32-279.el6.x86_64, 该版本已不需要<br>crc32c_intel.ko模块，可以过屏蔽脚本<code>/etc/init.d/iscsi-target</code>中的<br><code>modprobe -q crc32</code>来解决该错误信息。</p>
<pre><code>[root@ ~]# /etc/init.d/iscsi-target restart
Stopping iSCSI Target:                                     [  OK  ]
Starting iSCSI Target:                                     [  OK  ]
[root@ ~]# service iscsi-target status
iSCSI Target (pid 12147) is running...
</code></pre><h3 id="iSCSI-initiator"><a href="#iSCSI-initiator" class="headerlink" title="iSCSI initiator"></a>iSCSI initiator</h3><p>安装 <code>yum install iscsi-initiator-utils</code></p>
<p>iscsiadm是基于命令行的iscsi管理工具，提供对iscsi节点、会话、连接以及发现记录的操作。<br>涉及的主要操作如下:</p>
<ol>
<li>发现iscsi存储: iscsiadm -m discovery -t st -p ISCSI_IP</li>
<li>查看iscsi发现记录 iscsiadm -m node</li>
<li>删除iscsi发现记录 iscsiadm -m node -o delete -T LUN_NAME -p ISCSI_IP</li>
<li>登录iscsi存储 iscsiadm -m node -T LUN_NAME -p ISCSI_IP -l</li>
<li>登出iscsi存储 iscsiadm -m node -T LUN_NAME -p ISCSI_IP -u</li>
<li>登录全部iscsi存储 iscsiadm -m node -L all</li>
<li>登出全部iscsi存储 iscsiadm -m node -U all</li>
<li>查看session iscsiadm -m session</li>
<li><p>设置CHAP, vim /etc/iscsi/iscsid.conf, 或这使用下面的命令设置: </p>
<p>   [root@localhost ~]# iscsiadm -m node -T iqn.2007-10.lio.com:dg3.liolv1 -p 172.16.130.100 -o update –name node.session.auth.authmethod –value=CHAP<br>   [root@localhost ~]# iscsiadm -m node -T iqn.2007-10.lio.com:dg3.liolv1 -p 172.16.130.100 -o update –name node.session.auth.username –value=alan<br>   [root@localhost ~]# iscsiadm -m node -T iqn.2007-10.lio.com:dg3.liolv1 -p 172.16.130.100 -o update –name node.session.auth.password –value=123555<br>   [root@localhost ~]# iscsiadm -m node -T iqn.2007-10.lio.com:dg3.liolv1 -p 172.16.130.100 –login<br>注意:<br>要先使用发现discovery，然后才能登陆login，否则会出现错误“iscsiadm: No records found”</p>
</li>
</ol>
<p>下面是详细的操作：(<strong>注意:括号内容为注释说明</strong>)</p>
<pre><code>[root@localhost dennis]# fdisk -l

Disk /dev/sda: 149 GiB, 160000000000 bytes, 312500000 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00007f87

Device    Boot     Start       End    Blocks  Id System
/dev/sda1 *         2048   1026047    512000  83 Linux
/dev/sda2        1026048 312498175 155736064  8e Linux LVM

(...此处省略不必要的内容...)
[root@localhost dennis]# iscsiadm -m discovery -t st -p 172.16.110.10
172.16.110.10:3260,1 iqn.2014-06.com.matrix:storage.515.disk
[root@localhost dennis]# iscsiadm -m node -T iqn.2014-06.com.matrix:storage.515.disk -p 172.16.110.10 -l
Logging in to [iface: default, target: iqn.2014-06.com.matrix:storage.515.disk, portal: 172.16.110.10,3260] (multiple)
Login to [iface: default, target: iqn.2014-06.com.matrix:storage.515.disk, portal: 172.16.110.10,3260] successful.
[root@localhost dennis]# fdisk -l

Disk /dev/sda: 149 GiB, 160000000000 bytes, 312500000 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00007f87

Device    Boot     Start       End    Blocks  Id System
/dev/sda1 *         2048   1026047    512000  83 Linux
/dev/sda2        1026048 312498175 155736064  8e Linux LVM

(...此处省略不必要的内容...)
(成功连接后,多出一块磁盘/dev/sdb，大小刚好是前面dd创建的1G文件)
Disk /dev/sdb: 1 GiB, 1073741824 bytes, 2097152 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

[root@localhost dennis]# iscsiadm -m node -T iqn.2014-06.com.matrix:storage.515.disk -p 172.16.110.10 -u
Logging out of session [sid: 1, target: iqn.2014-06.com.matrix:storage.515.disk, portal: 172.16.110.10,3260]
Logout of [sid: 1, target: iqn.2014-06.com.matrix:storage.515.disk, portal: 172.16.110.10,3260] successful.
[root@localhost dennis]# 
</code></pre><p>连接成功后，iet端显示如下：</p>
<pre><code>[root@ ~]# cat /proc/net/iet/session
tid:1 name:iqn.2014-06.com.matrix:storage.515.disk
    sid:562949990973952 initiator:iqn.1994-05.com.redhat:7d366003913
        cid:0 ip:172.16.50.39 state:active hd:none dd:none    tip:172.16.110.10
</code></pre><p>第一次连接时，磁盘是还没有分区化, 磁盘分区：</p>
<pre><code>[root@localhost dennis]# fdisk /dev/sdb

Welcome to fdisk (util-linux 2.24.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

Device does not contain a recognized partition table.

Created a new DOS disklabel with disk identifier 0xf1eb4d09.

Command (m for help): m

Help:

  DOS (MBR)
   a   toggle a bootable flag
   b   edit nested BSD disklabel
   c   toggle the dos compatibility flag

  Generic
   d   delete a partition
   l   list known partition types
   n   add a new partition
   p   print the partition table
   t   change a partition type
   v   verify the partition table

  Misc
   m   print this menu
   u   change display/entry units
   x   extra functionality (experts only)

  Save &amp; Exit
   w   write table to disk and exit
   q   quit without saving changes

  Create a new label
   g   create a new empty GPT partition table
   G   create a new empty SGI (IRIX) partition table
   o   create a new empty DOS partition table
   s   create a new empty Sun partition table


Command (m for help): g
Created a new GPT disklabel (GUID: 22C002F1-D9F7-4E4C-8F89-9EFEBB971A1D).

Command (m for help): n
Partition number (1-128, default 1): 1
First sector (2048-2097118, default 2048): 
Last sector, +sectors or +size{K,M,G,T,P} (2048-2097118, default 2097118): 

Created a new partition 1 of type &apos;Linux filesystem&apos; and of size 1023 MiB.

Command (m for help): p
Disk /dev/sdb: 1 GiB, 1073741824 bytes, 2097152 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 22C002F1-D9F7-4E4C-8F89-9EFEBB971A1D

Device    Start          End   Size Type
/dev/sdb1  2048      2097118  1023M Linux filesystem

Command (m for help): w

The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.

[root@localhost dennis]# fdisk -l

Disk /dev/sda: 149 GiB, 160000000000 bytes, 312500000 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00007f87

Device    Boot     Start       End    Blocks  Id System
/dev/sda1 *         2048   1026047    512000  83 Linux
/dev/sda2        1026048 312498175 155736064  8e Linux LVM

(...此处省略不必要的内容...)

Disk /dev/sdb: 1 GiB, 1073741824 bytes, 2097152 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 22C002F1-D9F7-4E4C-8F89-9EFEBB971A1D

Device    Start          End   Size Type
/dev/sdb1  2048      2097118  1023M Linux filesystem
</code></pre><p>分区完毕后，对磁盘该分区进行格式化：</p>
<pre><code>[root@localhost dennis]# mkfs.ext3 /dev/sdb1
mke2fs 1.42.8 (20-Jun-2013)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
65536 inodes, 261883 blocks
13094 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=268435456
8 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks: 
    32768, 98304, 163840, 229376

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done
</code></pre><p>格式化完毕后,进行挂载，然后就可以像对待本地目录一样进行相关操作了(拷贝、删除等)<br><strong>注：下一次登陆iscsi卷后，不用进行分区、格式化了，直接挂载就可以使用了</strong></p>
<pre><code>[root@localhost dennis]# mkdir /mnt/iscsi
[root@localhost dennis]# mount /dev/sdb1 /mnt/iscsi
[root@localhost dennis]# ls /mnt/iscsi/
lost+found
[root@localhost dennis]# cp Downloads/VirtualBox-4.3-4.3.12_93733_fedora18-1.x86_64.rpm /mnt/iscsi/
[root@localhost dennis]# ls -lh /mnt/iscsi/
total 74M
drwx------. 2 root root 16K Jun 27 12:10 lost+found
-rw-r--r--. 1 root root 74M Jun 27 12:13 VirtualBox-4.3-4.3.12_93733_fedora18-1.x86_64.rpm
[root@localhost dennis]# 
</code></pre><h3 id="Initiator-for-windows"><a href="#Initiator-for-windows" class="headerlink" title="Initiator for windows"></a>Initiator for windows</h3><p>login with batch script </p>
<pre><code>@echo off
for /l %%j in (1,1,2) do (
    for /l %%k in (0,1,49) do (
        iscsicli logintarget iqn.2007-10.cbxa.com:r5%%j.aa%%k T 192.168.166.100 3260 * * * * * * * * * * * * * 0       
    )
)
pause
</code></pre><p>使用用户名(aa0~aa49)和密码(123456789012)登陆:</p>
<pre><code>iscsicli logintarget iqn.2007-10.cbxa.com:r5%%j.aa%%k T 192.168.166.100 3260 * * * * * * * * * aa%%k 123456789012  1 * 0
</code></pre><h3 id="Protocol"><a href="#Protocol" class="headerlink" title="Protocol"></a>Protocol</h3><p><img src="/assets/image/posts/iscsi/iscsi_010.png" alt=""><br><img src="/assets/image/posts/iscsi/iscsi_011.png" alt=""><br><img src="/assets/image/posts/iscsi/iscsi_026.png" alt=""><br><img src="/assets/image/posts/iscsi/iscsi_027.png" alt=""><br><img src="/assets/image/posts/iscsi/iscsi_028.png" alt=""><br><img src="/assets/image/posts/iscsi/iscsi_029.png" alt=""><br><img src="/assets/image/posts/iscsi/iscsi_030.png" alt=""><br><img src="/assets/image/posts/iscsi/iscsi_031.png" alt=""><br><img src="/assets/image/posts/iscsi/iscsi_032.png" alt=""><br><img src="/assets/image/posts/iscsi/iscsi_033.png" alt=""><br><img src="/assets/image/posts/iscsi/iscsi_034.png" alt=""><br><img src="/assets/image/posts/iscsi/iscsi_035.png" alt=""><br><img src="/assets/image/posts/iscsi/iscsi_036.png" alt=""><br><img src="/assets/image/posts/iscsi/iscsi_037.png" alt=""><br><img src="/assets/image/posts/iscsi/iscsi_038.png" alt=""><br><img src="/assets/image/posts/iscsi/iscsi_039.png" alt=""><br><img src="/assets/image/posts/iscsi/iscsi_040.png" alt=""><br><img src="/assets/image/posts/iscsi/iscsi_041.png" alt=""><br><img src="/assets/image/posts/iscsi/iscsi_042.png" alt=""><br><img src="/assets/image/posts/iscsi/iscsi_043.png" alt=""><br><img src="/assets/image/posts/iscsi/iscsi_044.png" alt=""><br><img src="/assets/image/posts/iscsi/iscsi_045.png" alt=""></p>
<h3 id="iSCSI-initiator与iSCSI-target："><a href="#iSCSI-initiator与iSCSI-target：" class="headerlink" title="iSCSI initiator与iSCSI target："></a>iSCSI initiator与iSCSI target：</h3><ol>
<li><a href="http://unh-iscsi.sourceforge.net/" target="_blank" rel="external">UNH iSCSI</a></li>
<li><a href="http://iscsitarget.sourceforge.net/" target="_blank" rel="external">iSCSI Enterprise Target</a></li>
<li><a href="http://sourceforge.net/projects/intel-iscsi/" target="_blank" rel="external">intel iSCSI</a></li>
<li><a href="http://www.microsoft.com/windowsserver2003/technologies/storage/iscsi/default.mspx" target="_blank" rel="external">Microsoft iSCSI Initiator 2.0X</a></li>
<li><a href="http://linux-iscsi.sourceforge.net/" target="_blank" rel="external">linux-iscsi(project</a></li>
<li><a href="http://www.open-iscsi.org/" target="_blank" rel="external">Open iSCSI</a></li>
<li>Microsoft Storage 2003</li>
<li><a href="http://www.starwindsoftware.com/" target="_blank" rel="external">StarWind</a></li>
</ol>
<h3 id="FAQ"><a href="#FAQ" class="headerlink" title="FAQ"></a>FAQ</h3><ol>
<li><p>防火墙链接限制，外界无法访问Target服务器3260端口。<br> 请在防火墙上手动放开3260端口，或者有条件的话干脆关闭防火墙。<br> 更改防火墙配置并重启生效<br> vi /etc/sysconfig/iptables<br> server iptable restart  </p>
<p> service iptables stop<br> setenforce 0  </p>
</li>
<li><p>共享的路径都可以有哪些？<br> 在IET的技术文档中规定，以下几种路径是被支持的：  </p>
<pre><code>1)一个完整的 block 磁盘，比如/dev/sdb 。  
2)一个RAID设备或者是一个LVM.  
3)一个虚拟的镜像文件, 如dd使用创建.  
</code></pre></li>
<li><p>“iscsiadm:No portals found”.   </p>
<ul>
<li>可能服务没有启动：重启iscsid服务, <code>service iscsi start</code> </li>
<li>可能存储端没有允许当前ip访问：</li>
</ul>
</li>
</ol>
<h3 id="Reference"><a href="#Reference" class="headerlink" title="Reference"></a>Reference</h3><ul>
<li><a href="http://www.cnblogs.com/yunnotes/archive/2013/04/19/3032488.html" target="_blank" rel="external">iSCSI学习总结</a></li>
<li><a href="http://tech.watchstor.com/storage-network-130569.htm" target="_blank" rel="external">★★★如何正确使用iSCSI Enterprise Target</a></li>
<li><a href="http://www.doc88.com/p-51666752050.html" target="_blank" rel="external">iSCSI协议解析★★★</a></li>
<li><a href="http://www.h3c.com.cn/Solution/Multimedia_Communicate/Video_Surveillance_Storage/How_Do_I_Do_It/White_Paper/201008/686814_30004_0.htm" target="_blank" rel="external">iSCSI技术白皮书★★★</a></li>
<li><a href="http://www.sansky.net/article/2007-12-03-iscsi-storage.html" target="_blank" rel="external">iSCSI存储技术全攻略</a></li>
<li><a href="http://blog.sina.com.cn/s/blog_5c0153620100g7e2.html" target="_blank" rel="external">Linux下iSCSI安装步骤</a></li>
<li><a href="http://kissthink.com/archive/4379.html" target="_blank" rel="external">ET - iSCSI Enterprise Target</a></li>
<li><a href="http://lynnkong.iteye.com/blog/1806470" target="_blank" rel="external">存储基础知识学习笔记</a></li>
<li><a href="http://storage.cnw.com.cn/storage-virtualization/htm2012/20121210_260295.shtml" target="_blank" rel="external">解析iSCSI存储系统的未来发展</a></li>
<li><a href="http://sunshyfangtian.blog.51cto.com/1405751/560162/" target="_blank" rel="external">CentOS5 iSCSI部署</a></li>
<li><a href="http://www.storage-conference.org/2003/papers/19-Meth-Design.pdf" target="_blank" rel="external">Design of the ISCSI Protocol</a></li>
<li><a href="http://pmghong.blog.163.com/blog/static/2146602802012111505853540/" target="_blank" rel="external">iSCSI 二 – 搭建基于iSCSI的IP SAN存储系统</a></li>
<li><a href="http://blog.csdn.net/do2jiang/article/details/5144706" target="_blank" rel="external">ISCSI Target的常用配置和常用操作-备忘</a></li>
<li><a href="http://blog.csdn.net/vah101/article/details/6300197" target="_blank" rel="external">Linux下应用tgtadm构建iSCSI Target–SAN</a></li>
<li><a href="http://www.2cto.com/os/201202/119963.html" target="_blank" rel="external">详解Linux下挂载和格式化虚拟磁盘</a></li>
</ul>

      
    </div>
    <footer class="article-footer">
      <a data-url="http://yoursite.com/2014/06/24/iscsi/" data-id="ciqqpe1pv009lnmpv48albos7" class="article-share-link">Partager</a>
      
      
  <ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/iscsi/">iscsi</a></li></ul>

    </footer>
  </div>
  
    
<nav id="article-nav">
  
    <a href="/2014/06/26/sdn/" id="article-nav-newer" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Récent</strong>
      <div class="article-nav-title">
        
          SDN
        
      </div>
    </a>
  
  
    <a href="/2014/06/24/how-to-learn-morse-code/" id="article-nav-older" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Ancien</strong>
      <div class="article-nav-title">How to Learn Morse Code</div>
    </a>
  
</nav>

  
</article>

</section>
        
          <aside id="sidebar">
  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Catégories</h3>
    <div class="widget">
      <ul class="category-list"><li class="category-list-item"><a class="category-list-link" href="/categories/blog/">blog</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/database/">database</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/english/">english</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/kernel/">kernel</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/language/">language</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/linux/">linux</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/math/">math</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/network/">network</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/others/">others</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/person/">person</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/program/">program</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/source/">source</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/storage/">storage</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/tools/">tools</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/windows/">windows</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Mot-clés</h3>
    <div class="widget">
      <ul class="tag-list"><li class="tag-list-item"><a class="tag-list-link" href="/tags/FAQ/">FAQ</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/IRC/">IRC</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/Translation/">Translation</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/android/">android</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/api/">api</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/assembly/">assembly</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/awk/">awk</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/batch/">batch</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/blog/">blog</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/book/">book</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/c/">c</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/c/">c++</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/cache/">cache</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/crash/">crash</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/database/">database</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/debug/">debug</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/dot/">dot</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/driver/">driver</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/emacs/">emacs</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/exploit/">exploit</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/file-system/">file system</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/filesystem/">filesystem</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/flowchart/">flowchart</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/gcc/">gcc</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/git/">git</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/google/">google</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/graphviz/">graphviz</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/hexo/">hexo</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/hosts/">hosts</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/iscsi/">iscsi</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/java/">java</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/javascript/">javascript</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/job/">job</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/json/">json</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/kernel/">kernel</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/linux/">linux</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/lisp/">lisp</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/lua/">lua</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/makefile/">makefile</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/malloc/">malloc</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/math/">math</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/maxima/">maxima</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/memory/">memory</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/memory-overflow/">memory overflow</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/mtrace/">mtrace</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/netdisk/">netdisk</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/network/">network</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/others/">others</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/pandoc/">pandoc</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/performance/">performance</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/person/">person</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/protobuf/">protobuf</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/python/">python</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/rsync/">rsync</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/sed/">sed</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/shell/">shell</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/skype/">skype</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/sms/">sms</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/source/">source</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/ssh/">ssh</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/stack/">stack</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/storage/">storage</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/study/">study</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/svn/">svn</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/sync/">sync</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/test/">test</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/time/">time</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/tools/">tools</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/valgrind/">valgrind</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/vi/">vi</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/vim/">vim</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/virtual/">virtual</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/wget/">wget</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/windows/">windows</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/wireshark/">wireshark</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/write/">write</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/xml/">xml</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Nuage de mot-clés</h3>
    <div class="widget tagcloud">
      <a href="/tags/FAQ/" style="font-size: 10px;">FAQ</a> <a href="/tags/IRC/" style="font-size: 10px;">IRC</a> <a href="/tags/Translation/" style="font-size: 13px;">Translation</a> <a href="/tags/android/" style="font-size: 10px;">android</a> <a href="/tags/api/" style="font-size: 10px;">api</a> <a href="/tags/assembly/" style="font-size: 10px;">assembly</a> <a href="/tags/awk/" style="font-size: 11px;">awk</a> <a href="/tags/batch/" style="font-size: 14px;">batch</a> <a href="/tags/blog/" style="font-size: 10px;">blog</a> <a href="/tags/book/" style="font-size: 10px;">book</a> <a href="/tags/c/" style="font-size: 16px;">c</a> <a href="/tags/c/" style="font-size: 19px;">c++</a> <a href="/tags/cache/" style="font-size: 10px;">cache</a> <a href="/tags/crash/" style="font-size: 10px;">crash</a> <a href="/tags/database/" style="font-size: 17px;">database</a> <a href="/tags/debug/" style="font-size: 12px;">debug</a> <a href="/tags/dot/" style="font-size: 10px;">dot</a> <a href="/tags/driver/" style="font-size: 10px;">driver</a> <a href="/tags/emacs/" style="font-size: 11px;">emacs</a> <a href="/tags/exploit/" style="font-size: 10px;">exploit</a> <a href="/tags/file-system/" style="font-size: 10px;">file system</a> <a href="/tags/filesystem/" style="font-size: 12px;">filesystem</a> <a href="/tags/flowchart/" style="font-size: 10px;">flowchart</a> <a href="/tags/gcc/" style="font-size: 10px;">gcc</a> <a href="/tags/git/" style="font-size: 12px;">git</a> <a href="/tags/google/" style="font-size: 11px;">google</a> <a href="/tags/graphviz/" style="font-size: 11px;">graphviz</a> <a href="/tags/hexo/" style="font-size: 10px;">hexo</a> <a href="/tags/hosts/" style="font-size: 10px;">hosts</a> <a href="/tags/iscsi/" style="font-size: 14px;">iscsi</a> <a href="/tags/java/" style="font-size: 10px;">java</a> <a href="/tags/javascript/" style="font-size: 10px;">javascript</a> <a href="/tags/job/" style="font-size: 10px;">job</a> <a href="/tags/json/" style="font-size: 10px;">json</a> <a href="/tags/kernel/" style="font-size: 14px;">kernel</a> <a href="/tags/linux/" style="font-size: 14px;">linux</a> <a href="/tags/lisp/" style="font-size: 10px;">lisp</a> <a href="/tags/lua/" style="font-size: 10px;">lua</a> <a href="/tags/makefile/" style="font-size: 10px;">makefile</a> <a href="/tags/malloc/" style="font-size: 10px;">malloc</a> <a href="/tags/math/" style="font-size: 11px;">math</a> <a href="/tags/maxima/" style="font-size: 10px;">maxima</a> <a href="/tags/memory/" style="font-size: 11px;">memory</a> <a href="/tags/memory-overflow/" style="font-size: 10px;">memory overflow</a> <a href="/tags/mtrace/" style="font-size: 10px;">mtrace</a> <a href="/tags/netdisk/" style="font-size: 10px;">netdisk</a> <a href="/tags/network/" style="font-size: 20px;">network</a> <a href="/tags/others/" style="font-size: 18px;">others</a> <a href="/tags/pandoc/" style="font-size: 10px;">pandoc</a> <a href="/tags/performance/" style="font-size: 16px;">performance</a> <a href="/tags/person/" style="font-size: 11px;">person</a> <a href="/tags/protobuf/" style="font-size: 11px;">protobuf</a> <a href="/tags/python/" style="font-size: 10px;">python</a> <a href="/tags/rsync/" style="font-size: 10px;">rsync</a> <a href="/tags/sed/" style="font-size: 11px;">sed</a> <a href="/tags/shell/" style="font-size: 15px;">shell</a> <a href="/tags/skype/" style="font-size: 11px;">skype</a> <a href="/tags/sms/" style="font-size: 10px;">sms</a> <a href="/tags/source/" style="font-size: 11px;">source</a> <a href="/tags/ssh/" style="font-size: 10px;">ssh</a> <a href="/tags/stack/" style="font-size: 10px;">stack</a> <a href="/tags/storage/" style="font-size: 15px;">storage</a> <a href="/tags/study/" style="font-size: 10px;">study</a> <a href="/tags/svn/" style="font-size: 11px;">svn</a> <a href="/tags/sync/" style="font-size: 10px;">sync</a> <a href="/tags/test/" style="font-size: 11px;">test</a> <a href="/tags/time/" style="font-size: 10px;">time</a> <a href="/tags/tools/" style="font-size: 16px;">tools</a> <a href="/tags/valgrind/" style="font-size: 10px;">valgrind</a> <a href="/tags/vi/" style="font-size: 10px;">vi</a> <a href="/tags/vim/" style="font-size: 14px;">vim</a> <a href="/tags/virtual/" style="font-size: 11px;">virtual</a> <a href="/tags/wget/" style="font-size: 10px;">wget</a> <a href="/tags/windows/" style="font-size: 11px;">windows</a> <a href="/tags/wireshark/" style="font-size: 10px;">wireshark</a> <a href="/tags/write/" style="font-size: 13px;">write</a> <a href="/tags/xml/" style="font-size: 10px;">xml</a>
    </div>
  </div>

  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Archives</h3>
    <div class="widget">
      <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/07/">July 2016</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/04/">April 2016</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/03/">March 2016</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/02/">February 2016</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/01/">January 2016</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/11/">November 2015</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/10/">October 2015</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/09/">September 2015</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/08/">August 2015</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/07/">July 2015</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/06/">June 2015</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/03/">March 2015</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/02/">February 2015</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2015/01/">January 2015</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2014/12/">December 2014</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2014/11/">November 2014</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2014/09/">September 2014</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2014/08/">August 2014</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2014/07/">July 2014</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2014/06/">June 2014</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2014/05/">May 2014</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2014/04/">April 2014</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2014/03/">March 2014</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2013/11/">November 2013</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2013/10/">October 2013</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2013/09/">September 2013</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2013/08/">August 2013</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2013/07/">July 2013</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2013/06/">June 2013</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2013/05/">May 2013</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2013/04/">April 2013</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2013/03/">March 2013</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2013/02/">February 2013</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2013/01/">January 2013</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2012/12/">December 2012</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2012/09/">September 2012</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Articles récents</h3>
    <div class="widget">
      <ul>
        
          <li>
            <a href="/2016/07/17/how-to-implement-malloc/">如何实现一个malloc</a>
          </li>
        
          <li>
            <a href="/2016/07/17/study-grep-more/">grep工作原理</a>
          </li>
        
          <li>
            <a href="/2016/07/17/2016-04-13-malloc/">malloc</a>
          </li>
        
          <li>
            <a href="/2016/04/27/include-what-you-use/">使用IWYU整理头文件引用</a>
          </li>
        
          <li>
            <a href="/2016/04/24/understand-gcc-assembly-output/">understand gcc assembly output</a>
          </li>
        
      </ul>
    </div>
  </div>

  
</aside>
        
      </div>
      <footer id="footer">
  
  <div class="outer">
    <div id="footer-info" class="inner">
      &copy; 2016 Matrix207<br>
      Propulsé by <a href="http://hexo.io/" target="_blank">Hexo</a>
    </div>
  </div>
</footer>
    </div>
    <nav id="mobile-nav">
  
    <a href="/" class="mobile-nav-link">Home</a>
  
    <a href="/archives" class="mobile-nav-link">Archives</a>
  
</nav>
    

<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>


  <link rel="stylesheet" href="/fancybox/jquery.fancybox.css">
  <script src="/fancybox/jquery.fancybox.pack.js"></script>


<script src="/js/script.js"></script>

  </div>
</body>
</html>